﻿(function () {
    $namespace.register("Comkarl.Calipso.Controls");

    $global.Comkarl.Calipso.Controls.HelloWorldAndAlert = $def({
        $constructor: function () { },
        $members: {
            // This control does not render HTML in client-side code
            render: function () {
            },

            initialize: function () {
                // Using jQuery events...
                $(this.element).on("click", function (e) {
                    alert("I did it!");
                });
            }
        },
        $extends: $global.Comkarl.Web.UI.Controls.Control
    });

    $calipso$manager.registerControl("HelloWorldAndAlert", $global.Comkarl.Calipso.Controls.HelloWorldAndAlert);
})();